package com.artifact.mit.mypoint.fragment.app;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.artifact.mit.mypoint.R;

public class ProfileFragment extends Fragment {

	TextView membership;
	TextView activity;
	TextView completePercentage;
	TextView fullName;
	TextView email;
	TextView address;
	TextView city;
	TextView province;
	TextView country;
	TextView postalCode;
	TextView mobile;
	TextView work;
	TextView home;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.profile_view, null);
		membership = (TextView) view.findViewById(R.id.TextView1);
		activity = (TextView) view.findViewById(R.id.textView2);
		completePercentage = (TextView) view.findViewById(R.id.textView3);
		fullName = (TextView) view.findViewById(R.id.textView4);
		email = (TextView) view.findViewById(R.id.textView5);
		address = (TextView) view.findViewById(R.id.textView6);
		city = (TextView) view.findViewById(R.id.textView7);
		province = (TextView) view.findViewById(R.id.textView8);
		country = (TextView) view.findViewById(R.id.textView9);
		postalCode = (TextView) view.findViewById(R.id.textView10);
		mobile = (TextView) view.findViewById(R.id.textView11);
		work = (TextView) view.findViewById(R.id.textView12);
		home = (TextView) view.findViewById(R.id.textView13);
		return view;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		membership.setText("New");
		activity.setText("Average");
		completePercentage.setText("70% Completed");
		fullName.setText("Aries Prayoga");
		email.setText("ariezprayoga@gmail.com");
		address.setText("Singosari");
		city.setText("Malang");
		province.setText("Eastern Java");
		country.setText("Indonesia");
		postalCode.setText("65153");
		mobile.setText("+6285749293238");
		work.setText("-");
		home.setText("-");
	}
}
